package com.ruoyi.project.lely.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.R;
import com.ruoyi.project.lely.bean.entity.LyOrder;
import com.ruoyi.project.lely.bean.vo.LyUserCountVO;

/**
 * 订单
 *
 * @author luoyong
 */
public interface LyOrderService extends IService<LyOrder> {

    /**
     * 用户订单统计
     *
     * @param userId
     * @return
     */
    LyUserCountVO getOrderAccountById(Long userId);

    /**
     * 查询订单详情
     * @param page
     * @param showType
     * @return
     */
    R getOrderDetail(Page<LyOrder> page, Integer showType);
}
